Select DISTINCT(yr) from (select year(issue_date) as yr, issue_date from printsize_master,np_master,stamps where issue_date!='' and np_master.np_code=stamps.np_code and np_master.np='P' and printsize_master.printsize_code=stamps.printsize_code and printsize_master.printsize='4.4 x 3.6' and stamps.serial_no='0882' order by issue_date) t